{% extends "base.html" %}

{% block title %}Login{% endblock %}

{% block content %}
    <style>
        .centered-form {
            text-align: center;
        }
    </style>
    <div class="centered-form">
        <h2>Administrator Login</h2>
        {% if error %}
            <p style="color: red;">{{ error }}</p>
        {% endif %}
        <form method="post">
            <div class="form-group">
                <label for="username">Username:</label>
                <input type="text" id="username" name="username" required>
            </div>
            <div class="form-group">
                <label for="password">Password:</label>
                <input type="password" id="password" name="password" required>
            </div>
            <button type="submit">Login</button>
        </form>
    </div>
{% endblock %}